package org.alino.core.shiro.session;

import java.io.Serializable;

/**
 * @Desc Session状态
 * @Author by Brant
 * @Date 2017/1/12
 */
public class SessionStatus implements Serializable {

    private static final long serialVersionUID = 3572547194792399897L;
    public static final byte SESSION_STATUS_ONLINE = 1;
    public static final byte SESSION_STATUS_LOCK = 2;
    public static final byte SESSION_STATUS_LOGOUT = 3;

    /**
     * 是否离线   1：在线，2:锁定 3：离线
     */
    private byte onlineStatus = SESSION_STATUS_ONLINE;

    public byte getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(byte onlineStatus) {
        this.onlineStatus = onlineStatus;
    }
}
